package  
{
	import flash.display.Bitmap;
	import flash.text.TextFormat;
	import ginger.events.DataEvent;
	import ginger.ui.simple.SimpleBaseComponent;
	import ginger.ui.simple.SimpleLabel;
	import uiLib.NameLabelBgBmpdata;
	/**
	 * ...
	 * @author Ning
	 */
	public class NameView extends SimpleBaseComponent
	{
		private var _label:SimpleLabel;
		public function NameView() 
		{
			
		}
		override protected function configUI():void 
		{
			var bg:Bitmap = new Bitmap(new NameLabelBgBmpdata);
			addChild(bg)
			
			_label = new SimpleLabel();
			_label.defaultTextFormat = new TextFormat('宋体', 12, 0xffffff);
			_label.alpha = .9;
			addChild(_label);
		}
		public function set label(name:String):void
		{
			_label.text = name + '，欢迎您!';
			_label.x = (125 - _label.width) / 2;
			_label.y = 3;
		}
	}

}